{"version":3,"file":"vimeo.min.js","sources":["vimeo.js"],"names":["root","factory","define","amd","videojs","Vimeo","module","exports","require","this","VimeoState","UNSTARTED","ENDED","PLAYING","PAUSED","BUFFERING","Tech","getComponent","extend","constructor","options","ready","call","poster","setPoster","setSrc","options_","source","src","setTimeout","el_","parentNode","className","bind","dispose","replace","createEl","vimeo","vimeoInfo","baseUrl","baseApiUrl","videoId","parseUrl","iframe","document","createElement","setAttribute","techId","divWrapper","appendChild","_isOnMobile","ytControls","divBlocker","onclick","onPause","isApiReady","initPlayer","apiReadyQueue","push","$","getJSON","format","_this","data","thumbnail_large","self","vimeoVideoID","api","$f","state","volume","muted","muteVolume","time","duration","buffered","url","error","addEvent","id","onReady","onLoadProgress","onPlayProgress","onPlay","onFinish","onSeek","isReady_","triggerReady","trigger","startMuted","setMuted","durationUpdate","percent","seconds","onError","errorNumber","code","poster_","thumbnail_small","checkHighResPoster","autoplay","play","playOnReady","supportsFullScreen","load","pause","paused","currentTime","setCurrentTime","player_","createTimeRange","setVolume","percentAsDecimal","currentSrc","uri","_uri","image","Image","onload","naturalHeight","naturalWidth","onerror","height","width","e","isSupported","canPlaySource","type","test","navigator","userAgent","result","regex","match","injectCss","css","head","getElementsByTagName","style","styleSheet","cssText","createTextNode","vimeoIframeAPIReady","i","length","registerTech","Froogaloop","fn","init","eventCallbacks","hasWindowEvent","isReady","slice","Array","prototype","playerOrigin","element","getElementById","method","valueOrCallback","target_id","params","isFunction","callback","storeCallback","postMessage","eventName","removeEvent","removed","removeCallback","target","contentWindow","JSON","stringify","value","onMessageReceived","event","parse","origin","eventData","player_id","getCallback","undefined","apply","obj","isArray","toString","window","addEventListener","attachEvent"],"mappings":"CAiBC,SAAUA,EAAMC,GAChB,SAAUC,UAAW,YAAcA,OAAOC,IAAK,CAC9CD,QAAQ,YAAa,SAASE,GAC7B,MAAQJ,GAAKK,MAAQJ,EAAQG,SAExB,UAAUE,UAAW,UAAYA,OAAOC,QAAS,CACvDD,OAAOC,QAAWP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